package com.qfedu.edu.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 租户物模型属性表
 * </p>
 *
 * @author xiaobobo
 * @since 2024-09-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("qf_device_model")
@ApiModel(value="DeviceModel对象", description="租户物模型属性表")
public class DeviceModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户物模型主键")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "设备key")
    private String deviceKey;

    @ApiModelProperty(value = "租户id")
    private String tenantId;

    @ApiModelProperty(value = "租户物模型属性名称")
    private String propertyName;

    @ApiModelProperty(value = "物模型类型：1.属性；2.事件；3.服务")
    private Integer modelType;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "物模型描述")
    private String description;

    @ApiModelProperty(value = "物模型模板ID")
    private String templateId;


}
